home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
163_01
/
index.c
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
1988-01-30
|
384 b
|
8 lines
/*
** return pointer to the first occurrence of c in s
*/
index(s, c) char *s, c; {
while(*s) if(*s++ == c) return --s;
return 0;
}